package com.ssy.lingxi.purchase.api.dto.response.bidding;

import lombok.Data;

/**
 *redis缓存- 报价排名信息
 */
@Data
public class QueryPriceDynamicResponse{

    /**
     *报价单ID
     */
    private Long id;

    /**
     *报价次数
     */
    private Long count;

    /**
     *本次报价时间
     */
    private Long queryPriceTime;

    /**
     *本次报价总金额
     */
    private Double sumPrice;

    /**
     *对比上次报价 ：(本次报价金额-上次报价金额)/上次报价金额
     */
    private Double offerRatio;

    /**
     *当前报价最低价(上一轮报价)
     */
    private Double minPrice;

    /**
     *排名
     */
    private Long ranking=1L;

    /**
     *联系人名字
     */
    private String contacts;

    /**
     *会员ID
     */
    private Long memberId;

    /**
     *会员ID
     */
    private Long memberRoleId;

    /**
     *会员名称
     */
    private String memberName;

    public QueryPriceDynamicResponse() {
    }

    public QueryPriceDynamicResponse(Long id, String memberName, Long queryPriceTime, Double sumPrice, Long ranking, Long count) {
        this.id = id;
        this.memberName = memberName;
        this.queryPriceTime = queryPriceTime;
        this.sumPrice = sumPrice;
        this.ranking = ranking;
        this.count = count;
    }
}
